package org.example.fastproject.web.sys.model.dto.permission;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @Author 王海舟
 * @Date 2023/2/2 12:56
 * @PackageName:org.example.fastproject.web.sys.model.dto.permission
 * @ClassName: PermissionInsertDto
 * @Description: 新增权限
 * @Version 1.0
 */
@Data
@ApiModel(description = "新增权限")
public class PermissionInsertDto {
    @ApiModelProperty("权限名")
    @NotEmpty(message = "权限名不能为空")
    private String name;

    @ApiModelProperty("描述")
    private String description;
}
